package cn.heroes.weixin.services;

import java.util.ArrayList;
import java.util.List;

import cn.heroes.weixin.pojo.Button;
import cn.heroes.weixin.pojo.Menu;
import cn.heroes.weixin.pojo.Message;
import cn.heroes.weixin.type.ButtonType;

public class Service implements IService {

	@Override
	public Message event(Message fromMsg) {
		return null;
	}

	@Override
	public Message text(Message fromMsg) {
		return null;
	}

	@Override
	public Message image(Message fromMsg) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Message link(Message fromMsg) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Message location(Message fromMsg) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Message video(Message fromMsg) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Message voice(Message fromMsg) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Object> menu() {
		List<Object> os = new ArrayList<Object>();

		Menu m1 = new Menu();
		m1.setName("菜单1");
		Button b3 = new Button();
		b3.setName("按钮3");
		b3.setType(ButtonType.VIEW);
		b3.setUrl("http://weixin.qq.com");
		m1.setSub_button(new Button[] { b3 });

		Button b1 = new Button();
		b1.setName("按钮1");
		b1.setType(ButtonType.VIEW);
		b1.setUrl("http://weixin.qq.com");

		Button b2 = new Button();
		b2.setName("按钮2");
		b2.setType(ButtonType.VIEW);
		b2.setUrl("http://weixin.qq.com");
		
		
		return os;
	}

}
